<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:mobile"
  xid="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="left:18px;top:83px;width:154px;height:auto;">
    <div component="$UI/system/components/justep/data/baasData" xid="mainData"
      directDelete="true" autoLoad="false" idColumn="fID"
      onSaveCommit="saveCommit"
      queryAction="queryProject_name_table" tableName="project_name_table" url="/Highde/config_path_action" saveAction="saveProject_name_table">
      <column label="ID" name="fID" type="String"
        xid=""/>
      <column label="项目名称" name="fProjectName" type="String"
        xid=""/>
      <column label="项目位置" name="fProjectArea" type="String"
        xid=""/>
      <column label="项目管理员" name="fProjectAdmin" type="String"
        xid=""/>
      <column label="项目类型" name="fProjectType" type="String"
        xid=""/>
    	<rule xid="rule1">
   <col name="fID" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default2">justep.UUID.createUUID()</expr></calculate> </col> 
   <col name="fProjectName" xid="ruleCol2">
    <required xid="required1">
     <expr xid="default3">true</expr>
     <message xid="default4">项目名称必须填写</message></required> </col> 
   <col name="fProjectType" xid="ruleCol3">
    <calculate xid="calculate2">
     <expr xid="default5"></expr></calculate> 
    <required xid="required2">
     <expr xid="default6">true</expr>
     <message xid="default7">请选择项目类型</message></required> </col> </rule></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="projectTypeData" queryAction="queryProject_type_table" url="/Highde/user_action" tableName="project_type_table" idColumn="fProjectType"><column label="项目类型" name="fProjectType" type="String" xid="default1"></column></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="false" xid="userProjectData" queryAction="queryUser_project_table" saveAction="saveUser_project_table" url="/Highde/config_path_action" tableName="user_project_table" idColumn="fID"><rule xid="rule2">
   <col name="fID" xid="ruleCol4">
    <calculate xid="calculate3">
     <expr xid="default13">justep.UUID.createUUID()</expr></calculate> </col> </rule>
  <column label="ID" name="fID" type="String" xid="default14"></column>
  <column label="用户" name="fUserName" type="String" xid="default15"></column>
  <column label="fProjectID" name="fProjectID" type="String" xid="default16"></column></div></div>  
  <span component="$UI/system/components/justep/windowReceiver/windowReceiver" xid="windowReceiver1" onReceive="windowReceiver1Receive"></span><div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"> 
    <div class="x-panel-top"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" title="项目信息"
        class="x-titlebar"> 
        <div class="x-titlebar-left"> 
          <a component="$UI/system/components/justep/button/button" label=""
            class="btn btn-link btn-only-icon" icon="icon-chevron-left" onClick="{operation:'window.close'}"
            xid="backBtn"> 
            <i class="icon-chevron-left"/>  
            <span/> 
          </a> 
        </div>  
        <div class="x-titlebar-title">项目信息</div>  
        <div class="x-titlebar-right reverse"><a component="$UI/system/components/justep/button/button" class="btn btn-default" label="保存" xid="button1" onClick="{operation:'mainData.save'}">
   <i xid="i1"></i>
   <span xid="span1">保存</span></a>
  </div> 
      </div> 
    </div>  
    <div class="x-panel-content"> 
      <div component="$UI/system/components/justep/controlGroup/controlGroup"
        class="x-control-group" title="详细信息"> 
        <div class="x-control-group-title">详细信息</div> 
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fProjectName')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fProjectName')"/>
          </div> 
        </div>
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fProjectArea')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fProjectArea')"/>
          </div> 
        </div>
        <!-- <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fProjectAdmin')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fProjectAdmin')"/>
          </div> 
        </div> -->
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fProjectType')"/>  
          <div class="x-edit">
            <select component="$UI/system/components/justep/select/select" bind-optionsCaption="请选择..." class="form-control" xid="select1" bind-ref='$model.mainData.ref("fProjectType")' bind-options="projectTypeData" bind-optionsValue="fProjectType" bind-optionsLabel="fProjectType" bind-labelRef='$model.mainData.ref("fProjectType")'></select></div> 
        </div>
      </div> 
    </div> 
  </div> 
</div>